<!--{include(pe_tpl('header.html'));}-->
<div class="right">
	<div class="now">
		<a href="admin.php?mod=refund" <!--{if(!$_g_state):}-->class="sel"<!--{endif;}-->>全部申请（{$tongji['all']}）<i></i></a>
		<!--{foreach($ini['refund_state'] as $k=>$v):}-->
		<a href="admin.php?mod=refund&state={$k}" <!--{if($_g_state==$k):}-->class="sel"<!--{endif;}-->>{$v}（{$tongji[$k]}）<i></i></a>
		<!--{endforeach;}-->
		<a href="admin.php?mod=refund_addr" onclick="return pe_dialog(this, '退货地址管理', '800', 500)" id="fabu">退货地址管理</a>
		<div class="clear"></div>
	</div>
	<div class="right_main">
		<div class="search">
			<form method="get">
				<input type="hidden" name="mod" value="{$_g_mod}" />
				<input type="hidden" name="state" value="{$_g_state}" />
				订单编号：<input type="text" name="order_id" value="{$_g_order_id}" class="inputtext input150 mar5" />
				退款编号：<input type="text" name="id" value="{$_g_id}" class="inputtext input150 mar5" />
				用户名：<input type="text" name="user_name" value="{$_g_user_name}" class="inputtext input100 mar5" />
				<input type="submit" value="搜索" class="input_btn" />
			</form>
		</div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
		<tr>
			<th class="bgtt" style="border-bottom:0;">商品信息</th>
			<th class="bgtt" style="border-bottom:0;" width="111">退款金额</th>
			<th class="bgtt" style="border-bottom:0;" width="121">用户名</th>
			<th class="bgtt" style="border-bottom:0;" width="91">类型</th>
			<th class="bgtt" style="border-bottom:0;" width="91">状态</th>
			<th class="bgtt" style="border-bottom:0;" width="91">操作</th>
		</tr>
		</table>
		<!--{foreach($info_list as $k=>$v):}-->
		<div class="hy_ordertw c666 mat10">
			退款编号：<span class="num" style="margin-right:60px">{$v['refund_id']}</span>
			申请日期：<span class="num">{pe_date($v['refund_atime'])}</span>
			<div class="clear"></div>
		</div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hy_orderlist">
		<tr>
			<td class="aleft" style="border-left:0;padding:8px 10px;">
				<div class="dingdan_list" <!--{if($kk==0):}-->style="padding-top:0"<!--{endif;}-->>
				<table width="100%" class="dd_tb1">
				<tr>
					<td width="50"><a href="{pe_url('product-'.$v['product_id'])}" target="_blank"><img src="{pe_thumb($v['product_logo'], 100, 100)}" width="40" height="40" class="imgbg" /></a></td>
					<td>
						<a href="{pe_url('product-'.$v['product_id'])}" title="{$v['product_name']}" target="_blank" class="cblue dd_name">{$v['product_name']}</a>
						<p class="c999">{order_skushow($v['product_rule'])}</p>
						<p class="c999 font12">订单号：<a href="admin.php?mod=order&act=edit&id={$v['order_id']}" target="_blank" class="c999">{$v['order_id']}</a></p>
					</td>
					<td class="aright">
						<span class="num">{$v['product_money']}</span>(×{$v['product_num']})
					</td>
				</tr>
				</table>
				</div>
			</td>
			<td width="110">
				<p class="corg num strong">{$v['refund_money']}</p>
				<p class="c999">（含运费：{$v['refund_wl_money']}）</p>
			</td>
			<td width="120">{$v['user_name']}</td>
			<td width="90">{$ini['refund_type'][$v['refund_type']]}</td>
			<td width="90">{refund_stateshow($v['refund_state'])}<p class="mat5"><a href="admin.php?mod=refund&act=view&id={$v['refund_id']}" target="_blank" class="c999">查看详情</a></p></td>
			<td width="90" style="border-right:0;">
				<!--{if($v['refund_state']=='wcheck'):}-->
				<a class="tag_org" href="admin.php?mod=refund&act=agree&id={$v['refund_id']}" onclick="return pe_dialog(this, '同意本次申请', 650, 390, 'refund')">同意申请</a>
				<p class="mat5"><a class="tag_gray" href="admin.php?mod=refund&act=refuse&id={$v['refund_id']}" onclick="return pe_dialog(this, '拒绝本次申请', 650, 410, 'refund')">拒绝申请</a></p>
				<!--{elseif($v['refund_state'] == 'wsend'):}-->
				<a class="tag_gray" href="admin.php?mod=refund&act=refuse&id={$v['refund_id']}" onclick="return pe_dialog(this, '拒绝本次申请', 650, 410, 'refund')">拒绝申请</a>
				<!--{elseif($v['refund_state'] == 'wget'):}-->
				<a class="tag_green" href="admin.php?mod=refund&act=success&id={$v['refund_id']}&token={$pe_token}" onclick="return pe_cfone(this, '已收货并退款')">确认收货</a>
				<p class="mat5"><a class="tag_gray" href="admin.php?mod=refund&act=refuse&id={$v['refund_id']}" onclick="return pe_dialog(this, '拒绝本次申请', 650, 410, 'refund')">拒绝申请</a></p>
				<!--{elseif($v['refund_state'] == 'refuse'):}-->
				<a class="tag_org" href="admin.php?mod=refund&act=agree&id={$v['refund_id']}" onclick="return pe_dialog(this, '同意本次申请', 650, 390, 'refund')">同意申请</a>
				<!--{elseif($v['refund_state'] == 'close'):}-->
				<a href="admin.php?mod=refund&act=del&id={$v['refund_id']}&token={$pe_token}" onclick="return pe_cfone(this, '删除本次申请')" class="c999">删除</a>
				<!--{else:}-->
				-
				<!--{endif;}-->
			</td>
		</tr>
		</table>
		<!--{endforeach;}-->
	</div>
	<div class="right_bottom">
		<span class="fr fenye">{$db->page->html}</span>
		<div class="clear"></div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$("select").change(function(){
		window.location.href = 'admin.php' + $(this).find("option:selected").attr("href");
	})
})
</script>
<!--{include(pe_tpl('footer.html'));}-->